package pac;
  class Float{
	  float pi;
  }
public class ObjectTest {
  public static void main(String[] args){
	Float pa= new Float();
	Float pb=new Float();
	pa.pi=3;
	pb.pi=4;
	System.out.println("输出1：原始时pa="+pa.pi+",原始时pb="+pb.pi);
	pa.pi=pb.pi;
	System.out.println("输出2：执行pa.pi=pb.pi后，pa="+pa.pi+"pb.pi="+pb.pi+"\n");
	
	pa.pi=6;
	System.out.println("输出3：执行pa.pi=6后,pa.pi="+pa.pi+"pb.pi="+pb.pi+"\n");
	pa=pb;
	System.out.println("输出4：执行pa=pb，后,pa.pi="+pa.pi+"pb.pi="+pb.pi);
	pa.pi=7;
	System.out.println("输出5：执行pa.pi=7后，pa.pi="+pa.pi+"pb.pi="+pb.pi+"\n注意输出3和输出5");
	
  }
}
